/**
 * This class has all attributes and functions of objects of Order class
 * @author Sayatbek
 *
 */
public class Order{
        private String id;
        private String customerId;
        private String itemId;
        //private double priceOfProduct;
        private int quantity;
        //private double totalCost;
        //private double discount;
        private double overallCost;
        
        /**
         * default constructor
         * @param id
         * @param customer
         * @param itemId
         * @param priceOfProduct
         * @param quantity
         * @param totalCost
         * @param discount
         * @param overallCost
         */
        
        public Order(String id, String customerId, String itemId, int quantity, 
        		double totalCost, double discount, double overallCost){
                this.id=id;
                this.customerId=customerId;
                this.itemId=itemId;
                this.quantity=quantity;
                //this.totalCost=totalCost;
                //this.discount=discount;
                this.overallCost=overallCost;
        }       
        /**
         * 
         * @return id
         */
        public String getId(){return id;}
        /**
         * 
         * @return customer
         */
        public String getCustomerId(){return customerId;}
        /**
         * 
         * @return itemId
         */
        public String getItemId(){return itemId;}
        /**
         * 
         * @return priceOfProduct
         */
       
        public int getQuantity(){return quantity;}
        /**
         * 
         * @return ovrerallCost
         */
        public double getOverallCost(double price){
        	
            double totalCost = price*quantity;
        	overallCost = totalCost;    
        	return overallCost;
        }
        
}
